<h1>Import OPML</h1>

<div class="note">
	You may upload your subscription information here.  Locate the OPML/XML subscription file
	you saved from Google Reader.
</div>

<?php

//  if (isset($test_data)) {
//		print "<pre>";
//		print_r($test_data);
//		print "</pre>";
//	}
//	
	if (isset($import_results)) {
		print "<pre>";
		print_r($import_results);
		print "</pre>";
	}

  
  
	print $session->flash('auth');
	//print $session->flash();
	if (isset($import_results)) {
		print "Imported " . $import_results['folders'] . ' folder' . ($import_results['folders'] == 1 ? '' : 's') . ' and ' . $import_results['feeds'] . ' feed' . ($import_results['feeds'] == 1 ? '' : 's') . '<p/>';
	}
	
  print $form->create('User', array('action'=>'import_opml','enctype'=>'multipart/form-data'));
	print $form->file('OPML');
	print $form->end('Import');

?>